module CommunitiesHelper
  
  def check_session_set_neighbor(community)
    if session[:community_set_neighbor].nil?
      false
    else
      session[:community_set_neighbor].include?(community.id)
    end
  end
  
end
